<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style></style>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script>
        function show(json) {
	        document.getElementById('ull').innerHTML = ''
	        for (let i = 0; i < json.s.length; i++) {
                var lii = document.createElement('li')
                lii.innerHTML = json.s[i];
		        document.getElementById('ull').appendChild(lii);
	        }
        }
        window.onload = function () {
            let os = document.getElementById('txt');
            let s1 = document.getElementById('s1');
            // encodeURIComponent
            os.oninput = function () {
            	let osc = document.createElement('script');
	            osc.src = `https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=${encodeURIComponent(os.value)}&cb=show`
                document.head.appendChild(osc);
            }
        }
    </script>
    <script id="s1"></script>
</head>
<body>
<input type="text" id="txt">
<ul id="ull"></ul>
</body>
<script>

</script>
</html>